<?php
include ("../connect.php");
if(isset($_POST['ms_mt']))
{
	$ms_mt = $_POST['ms_mt'];
	$arr=explode(',',$ms_mt);
	for($i = 0;$i < count($arr);$i++)
	{
		//$sql = "select logo from mau_tin_td where ms_mau_tin_td='$ms_mt_i'";
		//$rs = mysql_query($sql);
		//$row = mysql_fetch_array($rs);

		$ms_mt_i=$arr[$i];
		$sql="DELETE FROM mau_tin_rv WHERE ms_mau_tin_rv='$ms_mt_i'";
		$rs=mysql_query($sql);
	}
	if($rs)
	{
	   echo "<script>
			alert ('Đã xóa dữ liệu thành công...');
			location.href='../index.php?noidung=canhan';
			</script>";
	}
}
if(isset($_REQUEST['ms'])){
	$ms = $_REQUEST['ms'];
	$sql = "DELETE FROM mau_tin_rv WHERE ms_mau_tin_rv='$ms'";
	$rs=mysql_query($sql);
	if($rs)
	{
	   echo "<script>
			alert ('Đã xóa dữ liệu thành công...');
			location.href='../index.php?noidung=canhan';
			</script>";
	}
}
?>